package com.qf.mapper;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    List<User> queryAllUser(String name, Integer roleId, Integer status, Integer start, Integer limit);

    List<User> queryUser(Integer userId, String username, String password);

    User queryUserCount();

    int updateUser(User user);

    int insertUser(User user);

    int updateUserStatus(@Param("userIds") List<Integer> userIds, @Param("userStatus") Integer userStatus);

    int deleteUser(@Param("userIds") List<Integer> userIds);

}
